package com.lilosoft.business.precity.models;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class UpProAttachmentExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public UpProAttachmentExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andRowguidIsNull() {
            addCriterion("ROWGUID is null");
            return (Criteria) this;
        }

        public Criteria andRowguidIsNotNull() {
            addCriterion("ROWGUID is not null");
            return (Criteria) this;
        }

        public Criteria andRowguidEqualTo(String value) {
            addCriterion("ROWGUID =", value, "rowguid");
            return (Criteria) this;
        }

        public Criteria andRowguidNotEqualTo(String value) {
            addCriterion("ROWGUID <>", value, "rowguid");
            return (Criteria) this;
        }

        public Criteria andRowguidGreaterThan(String value) {
            addCriterion("ROWGUID >", value, "rowguid");
            return (Criteria) this;
        }

        public Criteria andRowguidGreaterThanOrEqualTo(String value) {
            addCriterion("ROWGUID >=", value, "rowguid");
            return (Criteria) this;
        }

        public Criteria andRowguidLessThan(String value) {
            addCriterion("ROWGUID <", value, "rowguid");
            return (Criteria) this;
        }

        public Criteria andRowguidLessThanOrEqualTo(String value) {
            addCriterion("ROWGUID <=", value, "rowguid");
            return (Criteria) this;
        }

        public Criteria andRowguidLike(String value) {
            addCriterion("ROWGUID like", value, "rowguid");
            return (Criteria) this;
        }

        public Criteria andRowguidNotLike(String value) {
            addCriterion("ROWGUID not like", value, "rowguid");
            return (Criteria) this;
        }

        public Criteria andRowguidIn(List<String> values) {
            addCriterion("ROWGUID in", values, "rowguid");
            return (Criteria) this;
        }

        public Criteria andRowguidNotIn(List<String> values) {
            addCriterion("ROWGUID not in", values, "rowguid");
            return (Criteria) this;
        }

        public Criteria andRowguidBetween(String value1, String value2) {
            addCriterion("ROWGUID between", value1, value2, "rowguid");
            return (Criteria) this;
        }

        public Criteria andRowguidNotBetween(String value1, String value2) {
            addCriterion("ROWGUID not between", value1, value2, "rowguid");
            return (Criteria) this;
        }

        public Criteria andObjIdIsNull() {
            addCriterion("OBJ_ID is null");
            return (Criteria) this;
        }

        public Criteria andObjIdIsNotNull() {
            addCriterion("OBJ_ID is not null");
            return (Criteria) this;
        }

        public Criteria andObjIdEqualTo(String value) {
            addCriterion("OBJ_ID =", value, "objId");
            return (Criteria) this;
        }

        public Criteria andObjIdNotEqualTo(String value) {
            addCriterion("OBJ_ID <>", value, "objId");
            return (Criteria) this;
        }

        public Criteria andObjIdGreaterThan(String value) {
            addCriterion("OBJ_ID >", value, "objId");
            return (Criteria) this;
        }

        public Criteria andObjIdGreaterThanOrEqualTo(String value) {
            addCriterion("OBJ_ID >=", value, "objId");
            return (Criteria) this;
        }

        public Criteria andObjIdLessThan(String value) {
            addCriterion("OBJ_ID <", value, "objId");
            return (Criteria) this;
        }

        public Criteria andObjIdLessThanOrEqualTo(String value) {
            addCriterion("OBJ_ID <=", value, "objId");
            return (Criteria) this;
        }

        public Criteria andObjIdLike(String value) {
            addCriterion("OBJ_ID like", value, "objId");
            return (Criteria) this;
        }

        public Criteria andObjIdNotLike(String value) {
            addCriterion("OBJ_ID not like", value, "objId");
            return (Criteria) this;
        }

        public Criteria andObjIdIn(List<String> values) {
            addCriterion("OBJ_ID in", values, "objId");
            return (Criteria) this;
        }

        public Criteria andObjIdNotIn(List<String> values) {
            addCriterion("OBJ_ID not in", values, "objId");
            return (Criteria) this;
        }

        public Criteria andObjIdBetween(String value1, String value2) {
            addCriterion("OBJ_ID between", value1, value2, "objId");
            return (Criteria) this;
        }

        public Criteria andObjIdNotBetween(String value1, String value2) {
            addCriterion("OBJ_ID not between", value1, value2, "objId");
            return (Criteria) this;
        }

        public Criteria andFileNameIsNull() {
            addCriterion("FILE_NAME is null");
            return (Criteria) this;
        }

        public Criteria andFileNameIsNotNull() {
            addCriterion("FILE_NAME is not null");
            return (Criteria) this;
        }

        public Criteria andFileNameEqualTo(String value) {
            addCriterion("FILE_NAME =", value, "fileName");
            return (Criteria) this;
        }

        public Criteria andFileNameNotEqualTo(String value) {
            addCriterion("FILE_NAME <>", value, "fileName");
            return (Criteria) this;
        }

        public Criteria andFileNameGreaterThan(String value) {
            addCriterion("FILE_NAME >", value, "fileName");
            return (Criteria) this;
        }

        public Criteria andFileNameGreaterThanOrEqualTo(String value) {
            addCriterion("FILE_NAME >=", value, "fileName");
            return (Criteria) this;
        }

        public Criteria andFileNameLessThan(String value) {
            addCriterion("FILE_NAME <", value, "fileName");
            return (Criteria) this;
        }

        public Criteria andFileNameLessThanOrEqualTo(String value) {
            addCriterion("FILE_NAME <=", value, "fileName");
            return (Criteria) this;
        }

        public Criteria andFileNameLike(String value) {
            addCriterion("FILE_NAME like", value, "fileName");
            return (Criteria) this;
        }

        public Criteria andFileNameNotLike(String value) {
            addCriterion("FILE_NAME not like", value, "fileName");
            return (Criteria) this;
        }

        public Criteria andFileNameIn(List<String> values) {
            addCriterion("FILE_NAME in", values, "fileName");
            return (Criteria) this;
        }

        public Criteria andFileNameNotIn(List<String> values) {
            addCriterion("FILE_NAME not in", values, "fileName");
            return (Criteria) this;
        }

        public Criteria andFileNameBetween(String value1, String value2) {
            addCriterion("FILE_NAME between", value1, value2, "fileName");
            return (Criteria) this;
        }

        public Criteria andFileNameNotBetween(String value1, String value2) {
            addCriterion("FILE_NAME not between", value1, value2, "fileName");
            return (Criteria) this;
        }

        public Criteria andFileRealNameIsNull() {
            addCriterion("FILE_REAL_NAME is null");
            return (Criteria) this;
        }

        public Criteria andFileRealNameIsNotNull() {
            addCriterion("FILE_REAL_NAME is not null");
            return (Criteria) this;
        }

        public Criteria andFileRealNameEqualTo(String value) {
            addCriterion("FILE_REAL_NAME =", value, "fileRealName");
            return (Criteria) this;
        }

        public Criteria andFileRealNameNotEqualTo(String value) {
            addCriterion("FILE_REAL_NAME <>", value, "fileRealName");
            return (Criteria) this;
        }

        public Criteria andFileRealNameGreaterThan(String value) {
            addCriterion("FILE_REAL_NAME >", value, "fileRealName");
            return (Criteria) this;
        }

        public Criteria andFileRealNameGreaterThanOrEqualTo(String value) {
            addCriterion("FILE_REAL_NAME >=", value, "fileRealName");
            return (Criteria) this;
        }

        public Criteria andFileRealNameLessThan(String value) {
            addCriterion("FILE_REAL_NAME <", value, "fileRealName");
            return (Criteria) this;
        }

        public Criteria andFileRealNameLessThanOrEqualTo(String value) {
            addCriterion("FILE_REAL_NAME <=", value, "fileRealName");
            return (Criteria) this;
        }

        public Criteria andFileRealNameLike(String value) {
            addCriterion("FILE_REAL_NAME like", value, "fileRealName");
            return (Criteria) this;
        }

        public Criteria andFileRealNameNotLike(String value) {
            addCriterion("FILE_REAL_NAME not like", value, "fileRealName");
            return (Criteria) this;
        }

        public Criteria andFileRealNameIn(List<String> values) {
            addCriterion("FILE_REAL_NAME in", values, "fileRealName");
            return (Criteria) this;
        }

        public Criteria andFileRealNameNotIn(List<String> values) {
            addCriterion("FILE_REAL_NAME not in", values, "fileRealName");
            return (Criteria) this;
        }

        public Criteria andFileRealNameBetween(String value1, String value2) {
            addCriterion("FILE_REAL_NAME between", value1, value2, "fileRealName");
            return (Criteria) this;
        }

        public Criteria andFileRealNameNotBetween(String value1, String value2) {
            addCriterion("FILE_REAL_NAME not between", value1, value2, "fileRealName");
            return (Criteria) this;
        }

        public Criteria andFileTypeIsNull() {
            addCriterion("FILE_TYPE is null");
            return (Criteria) this;
        }

        public Criteria andFileTypeIsNotNull() {
            addCriterion("FILE_TYPE is not null");
            return (Criteria) this;
        }

        public Criteria andFileTypeEqualTo(String value) {
            addCriterion("FILE_TYPE =", value, "fileType");
            return (Criteria) this;
        }

        public Criteria andFileTypeNotEqualTo(String value) {
            addCriterion("FILE_TYPE <>", value, "fileType");
            return (Criteria) this;
        }

        public Criteria andFileTypeGreaterThan(String value) {
            addCriterion("FILE_TYPE >", value, "fileType");
            return (Criteria) this;
        }

        public Criteria andFileTypeGreaterThanOrEqualTo(String value) {
            addCriterion("FILE_TYPE >=", value, "fileType");
            return (Criteria) this;
        }

        public Criteria andFileTypeLessThan(String value) {
            addCriterion("FILE_TYPE <", value, "fileType");
            return (Criteria) this;
        }

        public Criteria andFileTypeLessThanOrEqualTo(String value) {
            addCriterion("FILE_TYPE <=", value, "fileType");
            return (Criteria) this;
        }

        public Criteria andFileTypeLike(String value) {
            addCriterion("FILE_TYPE like", value, "fileType");
            return (Criteria) this;
        }

        public Criteria andFileTypeNotLike(String value) {
            addCriterion("FILE_TYPE not like", value, "fileType");
            return (Criteria) this;
        }

        public Criteria andFileTypeIn(List<String> values) {
            addCriterion("FILE_TYPE in", values, "fileType");
            return (Criteria) this;
        }

        public Criteria andFileTypeNotIn(List<String> values) {
            addCriterion("FILE_TYPE not in", values, "fileType");
            return (Criteria) this;
        }

        public Criteria andFileTypeBetween(String value1, String value2) {
            addCriterion("FILE_TYPE between", value1, value2, "fileType");
            return (Criteria) this;
        }

        public Criteria andFileTypeNotBetween(String value1, String value2) {
            addCriterion("FILE_TYPE not between", value1, value2, "fileType");
            return (Criteria) this;
        }

        public Criteria andFileSaveTimeIsNull() {
            addCriterion("FILE_SAVE_TIME is null");
            return (Criteria) this;
        }

        public Criteria andFileSaveTimeIsNotNull() {
            addCriterion("FILE_SAVE_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andFileSaveTimeEqualTo(Date value) {
            addCriterion("FILE_SAVE_TIME =", value, "fileSaveTime");
            return (Criteria) this;
        }

        public Criteria andFileSaveTimeNotEqualTo(Date value) {
            addCriterion("FILE_SAVE_TIME <>", value, "fileSaveTime");
            return (Criteria) this;
        }

        public Criteria andFileSaveTimeGreaterThan(Date value) {
            addCriterion("FILE_SAVE_TIME >", value, "fileSaveTime");
            return (Criteria) this;
        }

        public Criteria andFileSaveTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("FILE_SAVE_TIME >=", value, "fileSaveTime");
            return (Criteria) this;
        }

        public Criteria andFileSaveTimeLessThan(Date value) {
            addCriterion("FILE_SAVE_TIME <", value, "fileSaveTime");
            return (Criteria) this;
        }

        public Criteria andFileSaveTimeLessThanOrEqualTo(Date value) {
            addCriterion("FILE_SAVE_TIME <=", value, "fileSaveTime");
            return (Criteria) this;
        }

        public Criteria andFileSaveTimeIn(List<Date> values) {
            addCriterion("FILE_SAVE_TIME in", values, "fileSaveTime");
            return (Criteria) this;
        }

        public Criteria andFileSaveTimeNotIn(List<Date> values) {
            addCriterion("FILE_SAVE_TIME not in", values, "fileSaveTime");
            return (Criteria) this;
        }

        public Criteria andFileSaveTimeBetween(Date value1, Date value2) {
            addCriterion("FILE_SAVE_TIME between", value1, value2, "fileSaveTime");
            return (Criteria) this;
        }

        public Criteria andFileSaveTimeNotBetween(Date value1, Date value2) {
            addCriterion("FILE_SAVE_TIME not between", value1, value2, "fileSaveTime");
            return (Criteria) this;
        }

        public Criteria andFileTableNameIsNull() {
            addCriterion("FILE_TABLE_NAME is null");
            return (Criteria) this;
        }

        public Criteria andFileTableNameIsNotNull() {
            addCriterion("FILE_TABLE_NAME is not null");
            return (Criteria) this;
        }

        public Criteria andFileTableNameEqualTo(String value) {
            addCriterion("FILE_TABLE_NAME =", value, "fileTableName");
            return (Criteria) this;
        }

        public Criteria andFileTableNameNotEqualTo(String value) {
            addCriterion("FILE_TABLE_NAME <>", value, "fileTableName");
            return (Criteria) this;
        }

        public Criteria andFileTableNameGreaterThan(String value) {
            addCriterion("FILE_TABLE_NAME >", value, "fileTableName");
            return (Criteria) this;
        }

        public Criteria andFileTableNameGreaterThanOrEqualTo(String value) {
            addCriterion("FILE_TABLE_NAME >=", value, "fileTableName");
            return (Criteria) this;
        }

        public Criteria andFileTableNameLessThan(String value) {
            addCriterion("FILE_TABLE_NAME <", value, "fileTableName");
            return (Criteria) this;
        }

        public Criteria andFileTableNameLessThanOrEqualTo(String value) {
            addCriterion("FILE_TABLE_NAME <=", value, "fileTableName");
            return (Criteria) this;
        }

        public Criteria andFileTableNameLike(String value) {
            addCriterion("FILE_TABLE_NAME like", value, "fileTableName");
            return (Criteria) this;
        }

        public Criteria andFileTableNameNotLike(String value) {
            addCriterion("FILE_TABLE_NAME not like", value, "fileTableName");
            return (Criteria) this;
        }

        public Criteria andFileTableNameIn(List<String> values) {
            addCriterion("FILE_TABLE_NAME in", values, "fileTableName");
            return (Criteria) this;
        }

        public Criteria andFileTableNameNotIn(List<String> values) {
            addCriterion("FILE_TABLE_NAME not in", values, "fileTableName");
            return (Criteria) this;
        }

        public Criteria andFileTableNameBetween(String value1, String value2) {
            addCriterion("FILE_TABLE_NAME between", value1, value2, "fileTableName");
            return (Criteria) this;
        }

        public Criteria andFileTableNameNotBetween(String value1, String value2) {
            addCriterion("FILE_TABLE_NAME not between", value1, value2, "fileTableName");
            return (Criteria) this;
        }

        public Criteria andCheckStateIsNull() {
            addCriterion("CHECK_STATE is null");
            return (Criteria) this;
        }

        public Criteria andCheckStateIsNotNull() {
            addCriterion("CHECK_STATE is not null");
            return (Criteria) this;
        }

        public Criteria andCheckStateEqualTo(Integer value) {
            addCriterion("CHECK_STATE =", value, "checkState");
            return (Criteria) this;
        }

        public Criteria andCheckStateNotEqualTo(Integer value) {
            addCriterion("CHECK_STATE <>", value, "checkState");
            return (Criteria) this;
        }

        public Criteria andCheckStateGreaterThan(Integer value) {
            addCriterion("CHECK_STATE >", value, "checkState");
            return (Criteria) this;
        }

        public Criteria andCheckStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("CHECK_STATE >=", value, "checkState");
            return (Criteria) this;
        }

        public Criteria andCheckStateLessThan(Integer value) {
            addCriterion("CHECK_STATE <", value, "checkState");
            return (Criteria) this;
        }

        public Criteria andCheckStateLessThanOrEqualTo(Integer value) {
            addCriterion("CHECK_STATE <=", value, "checkState");
            return (Criteria) this;
        }

        public Criteria andCheckStateIn(List<Integer> values) {
            addCriterion("CHECK_STATE in", values, "checkState");
            return (Criteria) this;
        }

        public Criteria andCheckStateNotIn(List<Integer> values) {
            addCriterion("CHECK_STATE not in", values, "checkState");
            return (Criteria) this;
        }

        public Criteria andCheckStateBetween(Integer value1, Integer value2) {
            addCriterion("CHECK_STATE between", value1, value2, "checkState");
            return (Criteria) this;
        }

        public Criteria andCheckStateNotBetween(Integer value1, Integer value2) {
            addCriterion("CHECK_STATE not between", value1, value2, "checkState");
            return (Criteria) this;
        }

        public Criteria andCdUptimeIsNull() {
            addCriterion("CD_UPTIME is null");
            return (Criteria) this;
        }

        public Criteria andCdUptimeIsNotNull() {
            addCriterion("CD_UPTIME is not null");
            return (Criteria) this;
        }

        public Criteria andCdUptimeEqualTo(Date value) {
            addCriterion("CD_UPTIME =", value, "cdUptime");
            return (Criteria) this;
        }

        public Criteria andCdUptimeNotEqualTo(Date value) {
            addCriterion("CD_UPTIME <>", value, "cdUptime");
            return (Criteria) this;
        }

        public Criteria andCdUptimeGreaterThan(Date value) {
            addCriterion("CD_UPTIME >", value, "cdUptime");
            return (Criteria) this;
        }

        public Criteria andCdUptimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CD_UPTIME >=", value, "cdUptime");
            return (Criteria) this;
        }

        public Criteria andCdUptimeLessThan(Date value) {
            addCriterion("CD_UPTIME <", value, "cdUptime");
            return (Criteria) this;
        }

        public Criteria andCdUptimeLessThanOrEqualTo(Date value) {
            addCriterion("CD_UPTIME <=", value, "cdUptime");
            return (Criteria) this;
        }

        public Criteria andCdUptimeIn(List<Date> values) {
            addCriterion("CD_UPTIME in", values, "cdUptime");
            return (Criteria) this;
        }

        public Criteria andCdUptimeNotIn(List<Date> values) {
            addCriterion("CD_UPTIME not in", values, "cdUptime");
            return (Criteria) this;
        }

        public Criteria andCdUptimeBetween(Date value1, Date value2) {
            addCriterion("CD_UPTIME between", value1, value2, "cdUptime");
            return (Criteria) this;
        }

        public Criteria andCdUptimeNotBetween(Date value1, Date value2) {
            addCriterion("CD_UPTIME not between", value1, value2, "cdUptime");
            return (Criteria) this;
        }

        public Criteria andDelStateIsNull() {
            addCriterion("DEL_STATE is null");
            return (Criteria) this;
        }

        public Criteria andDelStateIsNotNull() {
            addCriterion("DEL_STATE is not null");
            return (Criteria) this;
        }

        public Criteria andDelStateEqualTo(Integer value) {
            addCriterion("DEL_STATE =", value, "delState");
            return (Criteria) this;
        }

        public Criteria andDelStateNotEqualTo(Integer value) {
            addCriterion("DEL_STATE <>", value, "delState");
            return (Criteria) this;
        }

        public Criteria andDelStateGreaterThan(Integer value) {
            addCriterion("DEL_STATE >", value, "delState");
            return (Criteria) this;
        }

        public Criteria andDelStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("DEL_STATE >=", value, "delState");
            return (Criteria) this;
        }

        public Criteria andDelStateLessThan(Integer value) {
            addCriterion("DEL_STATE <", value, "delState");
            return (Criteria) this;
        }

        public Criteria andDelStateLessThanOrEqualTo(Integer value) {
            addCriterion("DEL_STATE <=", value, "delState");
            return (Criteria) this;
        }

        public Criteria andDelStateIn(List<Integer> values) {
            addCriterion("DEL_STATE in", values, "delState");
            return (Criteria) this;
        }

        public Criteria andDelStateNotIn(List<Integer> values) {
            addCriterion("DEL_STATE not in", values, "delState");
            return (Criteria) this;
        }

        public Criteria andDelStateBetween(Integer value1, Integer value2) {
            addCriterion("DEL_STATE between", value1, value2, "delState");
            return (Criteria) this;
        }

        public Criteria andDelStateNotBetween(Integer value1, Integer value2) {
            addCriterion("DEL_STATE not between", value1, value2, "delState");
            return (Criteria) this;
        }

        public Criteria andCdTimeIsNull() {
            addCriterion("CD_TIME is null");
            return (Criteria) this;
        }

        public Criteria andCdTimeIsNotNull() {
            addCriterion("CD_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andCdTimeEqualTo(Date value) {
            addCriterion("CD_TIME =", value, "cdTime");
            return (Criteria) this;
        }

        public Criteria andCdTimeNotEqualTo(Date value) {
            addCriterion("CD_TIME <>", value, "cdTime");
            return (Criteria) this;
        }

        public Criteria andCdTimeGreaterThan(Date value) {
            addCriterion("CD_TIME >", value, "cdTime");
            return (Criteria) this;
        }

        public Criteria andCdTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CD_TIME >=", value, "cdTime");
            return (Criteria) this;
        }

        public Criteria andCdTimeLessThan(Date value) {
            addCriterion("CD_TIME <", value, "cdTime");
            return (Criteria) this;
        }

        public Criteria andCdTimeLessThanOrEqualTo(Date value) {
            addCriterion("CD_TIME <=", value, "cdTime");
            return (Criteria) this;
        }

        public Criteria andCdTimeIn(List<Date> values) {
            addCriterion("CD_TIME in", values, "cdTime");
            return (Criteria) this;
        }

        public Criteria andCdTimeNotIn(List<Date> values) {
            addCriterion("CD_TIME not in", values, "cdTime");
            return (Criteria) this;
        }

        public Criteria andCdTimeBetween(Date value1, Date value2) {
            addCriterion("CD_TIME between", value1, value2, "cdTime");
            return (Criteria) this;
        }

        public Criteria andCdTimeNotBetween(Date value1, Date value2) {
            addCriterion("CD_TIME not between", value1, value2, "cdTime");
            return (Criteria) this;
        }

        public Criteria andSyncSignIsNull() {
            addCriterion("SYNC_SIGN is null");
            return (Criteria) this;
        }

        public Criteria andSyncSignIsNotNull() {
            addCriterion("SYNC_SIGN is not null");
            return (Criteria) this;
        }

        public Criteria andSyncSignEqualTo(Integer value) {
            addCriterion("SYNC_SIGN =", value, "syncSign");
            return (Criteria) this;
        }

        public Criteria andSyncSignNotEqualTo(Integer value) {
            addCriterion("SYNC_SIGN <>", value, "syncSign");
            return (Criteria) this;
        }

        public Criteria andSyncSignGreaterThan(Integer value) {
            addCriterion("SYNC_SIGN >", value, "syncSign");
            return (Criteria) this;
        }

        public Criteria andSyncSignGreaterThanOrEqualTo(Integer value) {
            addCriterion("SYNC_SIGN >=", value, "syncSign");
            return (Criteria) this;
        }

        public Criteria andSyncSignLessThan(Integer value) {
            addCriterion("SYNC_SIGN <", value, "syncSign");
            return (Criteria) this;
        }

        public Criteria andSyncSignLessThanOrEqualTo(Integer value) {
            addCriterion("SYNC_SIGN <=", value, "syncSign");
            return (Criteria) this;
        }

        public Criteria andSyncSignIn(List<Integer> values) {
            addCriterion("SYNC_SIGN in", values, "syncSign");
            return (Criteria) this;
        }

        public Criteria andSyncSignNotIn(List<Integer> values) {
            addCriterion("SYNC_SIGN not in", values, "syncSign");
            return (Criteria) this;
        }

        public Criteria andSyncSignBetween(Integer value1, Integer value2) {
            addCriterion("SYNC_SIGN between", value1, value2, "syncSign");
            return (Criteria) this;
        }

        public Criteria andSyncSignNotBetween(Integer value1, Integer value2) {
            addCriterion("SYNC_SIGN not between", value1, value2, "syncSign");
            return (Criteria) this;
        }

        public Criteria andCdBatchIsNull() {
            addCriterion("CD_BATCH is null");
            return (Criteria) this;
        }

        public Criteria andCdBatchIsNotNull() {
            addCriterion("CD_BATCH is not null");
            return (Criteria) this;
        }

        public Criteria andCdBatchEqualTo(String value) {
            addCriterion("CD_BATCH =", value, "cdBatch");
            return (Criteria) this;
        }

        public Criteria andCdBatchNotEqualTo(String value) {
            addCriterion("CD_BATCH <>", value, "cdBatch");
            return (Criteria) this;
        }

        public Criteria andCdBatchGreaterThan(String value) {
            addCriterion("CD_BATCH >", value, "cdBatch");
            return (Criteria) this;
        }

        public Criteria andCdBatchGreaterThanOrEqualTo(String value) {
            addCriterion("CD_BATCH >=", value, "cdBatch");
            return (Criteria) this;
        }

        public Criteria andCdBatchLessThan(String value) {
            addCriterion("CD_BATCH <", value, "cdBatch");
            return (Criteria) this;
        }

        public Criteria andCdBatchLessThanOrEqualTo(String value) {
            addCriterion("CD_BATCH <=", value, "cdBatch");
            return (Criteria) this;
        }

        public Criteria andCdBatchLike(String value) {
            addCriterion("CD_BATCH like", value, "cdBatch");
            return (Criteria) this;
        }

        public Criteria andCdBatchNotLike(String value) {
            addCriterion("CD_BATCH not like", value, "cdBatch");
            return (Criteria) this;
        }

        public Criteria andCdBatchIn(List<String> values) {
            addCriterion("CD_BATCH in", values, "cdBatch");
            return (Criteria) this;
        }

        public Criteria andCdBatchNotIn(List<String> values) {
            addCriterion("CD_BATCH not in", values, "cdBatch");
            return (Criteria) this;
        }

        public Criteria andCdBatchBetween(String value1, String value2) {
            addCriterion("CD_BATCH between", value1, value2, "cdBatch");
            return (Criteria) this;
        }

        public Criteria andCdBatchNotBetween(String value1, String value2) {
            addCriterion("CD_BATCH not between", value1, value2, "cdBatch");
            return (Criteria) this;
        }

        public Criteria andDatasourceIsNull() {
            addCriterion("DATASOURCE is null");
            return (Criteria) this;
        }

        public Criteria andDatasourceIsNotNull() {
            addCriterion("DATASOURCE is not null");
            return (Criteria) this;
        }

        public Criteria andDatasourceEqualTo(String value) {
            addCriterion("DATASOURCE =", value, "datasource");
            return (Criteria) this;
        }

        public Criteria andDatasourceNotEqualTo(String value) {
            addCriterion("DATASOURCE <>", value, "datasource");
            return (Criteria) this;
        }

        public Criteria andDatasourceGreaterThan(String value) {
            addCriterion("DATASOURCE >", value, "datasource");
            return (Criteria) this;
        }

        public Criteria andDatasourceGreaterThanOrEqualTo(String value) {
            addCriterion("DATASOURCE >=", value, "datasource");
            return (Criteria) this;
        }

        public Criteria andDatasourceLessThan(String value) {
            addCriterion("DATASOURCE <", value, "datasource");
            return (Criteria) this;
        }

        public Criteria andDatasourceLessThanOrEqualTo(String value) {
            addCriterion("DATASOURCE <=", value, "datasource");
            return (Criteria) this;
        }

        public Criteria andDatasourceLike(String value) {
            addCriterion("DATASOURCE like", value, "datasource");
            return (Criteria) this;
        }

        public Criteria andDatasourceNotLike(String value) {
            addCriterion("DATASOURCE not like", value, "datasource");
            return (Criteria) this;
        }

        public Criteria andDatasourceIn(List<String> values) {
            addCriterion("DATASOURCE in", values, "datasource");
            return (Criteria) this;
        }

        public Criteria andDatasourceNotIn(List<String> values) {
            addCriterion("DATASOURCE not in", values, "datasource");
            return (Criteria) this;
        }

        public Criteria andDatasourceBetween(String value1, String value2) {
            addCriterion("DATASOURCE between", value1, value2, "datasource");
            return (Criteria) this;
        }

        public Criteria andDatasourceNotBetween(String value1, String value2) {
            addCriterion("DATASOURCE not between", value1, value2, "datasource");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}